import React,{PropTypes} from 'react'
import {connect} from 'react-redux'
import RComponent from '../../components'
import Guideline from './guideline.js'
import Loading from '../../components/Loading'

class Guide extends RComponent {
    // static fetchUserConfigire(param,store,url){
    //     console.log('state:'+JSON.stringify(store.getState()))
    //     return store.dispatch(getUserConfigure());
    // }

    constructor(props, context){
        super(props, context)
    }

    componentWillMount(){
        // this.setState({
        //     loading:true
        // })
    }

    componentDidMount(){
    }

    render(){
        const { loading,loaded,configureStatus } = this.props;
        console.log('loading:'+loading)
        return (
            <Loading loading={loading}>
                <div className="home">
                    <Guideline>
                        {/*{children}*/}
                    </Guideline>
                </div>
            </Loading>
        )
    }
}
Guide.propTypes = {
    loading:PropTypes.bool,
    configureStatus:PropTypes.string,
}
Guide.defaultProps = {
    // loading:false,
    // configureStatus:'0',
}

export default connect(
    (state) => {
        return {
            loading:state.credentials.loading,
            configureStatus:state.credentials.configureStatus
        }
    }
)(Guide)
